<template>
    <button @click="props.aa(1234)">点击我</button>
</template>

<script setup>
    import { onMounted } from "vue"
    import { defineEmits } from "vue"
    const props = defineProps({
        msg: String,
        aa: Function,
    })
    onMounted(() => {
        console.log(props.msg)
    })
</script>
